window.MyAudio = {
    PlayEffect_initcar() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.initcar, false,0.5);
    },
    PlayEffect_mergecar() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.mergecar, false,0.5);
    },
    PlayEffect_startpk() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.startpk, false,0.5);
    },
    PlayEffect_getreword() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.getreword, false,0.5);
    },
    PlayEffect_button() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.button, false,0.5);
    },
    PlayEffect_pkbgm() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.playMusic(audiocom.pkbgm, true);
    },
    StopEffect_pkbgm() {
        cc.audioEngine.stopMusic();
    },
    PlayEffect_pksuccess() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.pksuccess, false,0.5);
    },
    PlayEffect_pkfail() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.pkfail, false,0.5);
    },
    PlayEffect_task() {
        let audiocom = cc.director.getScene().getChildByName('Audio').getComponent('AudioComponent');
        cc.audioEngine.play(audiocom.task, false,0.5);
    }
}